* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a855f7;
    --primary-dark: #7e22ce;
    --primary-light: #d8b4fe;
    --secondary-color: #34a853;
    --secondary-light: #81c995;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --bg-light: #0a0a0a;
    --bg-white: #1a1a1a;
    --bg-elevated: #252525;
    --border-color: rgba(168, 85, 247, 0.15);
    --success-color: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============== LOGIN PAGE ============== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--bg-light) 100%);
    z-index: -1;
}

.login-background::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    top: -100px;
    right: -100px;
    filter: blur(60px);
}

.login-background::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(52, 168, 83, 0.1);
    bottom: -50px;
    left: -50px;
    filter: blur(60px);
}

.login-box {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(168, 85, 247, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    animation: slideUp 0.6s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deriv-login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.deriv-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.deriv-login-btn:hover::before {
    left: 100%;
}

.deriv-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4);
}

.deriv-login-btn:active {
    transform: translateY(-1px);
}

.login-info {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.login-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.login-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-info a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Advanced Options Toggle */
.advanced-options-toggle {
    text-align: center;
    margin: 5px 0;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
}

.toggle-btn .chevron {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 11px;
}

.toggle-btn.active .chevron {
    transform: rotate(180deg);
}

/* Token Authentication Form */
.token-form {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.token-form.show {
    max-height: 500px;
    opacity: 1;
    margin: 10px 0 0 0;
}

.token-info {
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form-input::placeholder {
    color: #505050;
}

.token-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
    line-height: 1.5;
}

.token-login-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.token-login-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.token-login-btn:active {
    transform: translateY(0);
}

/* ============== DASHBOARD LAYOUT ============== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.dashboard-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-overlay.hide {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
}

.menu-item.active {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-icon {
    font-size: 18px;
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(26, 26, 26, 0.8) 100%);
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
}

.sidebar-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-btn {
    background: linear-gradient(135deg, var(--danger-color), #c5221f);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.2);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 67, 53, 0.3);
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ============== QUICK STATS ============== */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 37, 37, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.stat-icon.balance {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-icon.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.stat-icon.performance {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
}

.stat-icon.id {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-currency {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ============== ACCOUNT INFO CARD ============== */

.account-info-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 37, 37, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.15);
    color: var(--success-color);
    border-radius: 6px;
    font-size: 14px;
    width: fit-content;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success-color);
    display: inline-block;
}

/* ============== SECTION HEADER ============== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============== COPY TRADING SECTION ============== */

.copy-trading-section {
    margin-bottom: 35px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.traders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.trader-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 37, 37, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.trader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trader-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
    transform: translateY(-6px);
}

.trader-card:hover::before {
    opacity: 1;
}

.trader-header {
    margin-bottom: 16px;
}

.trader-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.trader-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.trader-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.trader-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.risk-low {
    color: var(--success-color);
}

.risk-medium {
    color: var(--warning-color);
}

.risk-high {
    color: var(--danger-color);
}

.btn-copy-trader {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-copy-trader:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============== ACTIVE COPIES SECTION ============== */

.active-copies-section {
    margin-bottom: 35px;
}

.copies-table-container {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 37, 37, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.copies-table {
    width: 100%;
    border-collapse: collapse;
}

.copies-table thead {
    background: rgba(168, 85, 247, 0.1);
    border-bottom: 2px solid var(--border-color);
}

.copies-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.copies-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.copies-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

.copies-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 16px;
    font-style: italic;
}

.btn-secondary {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #d33427;
    transform: translateY(-1px);
}

/* ============== TRADING HISTORY SECTION ============== */

.trading-history-section {
    margin-bottom: 35px;
}

.trading-history {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 37, 37, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.trading-history .no-data {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* ============== LOADING & MODALS ============== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.error-content {
    text-align: center;
}

.error-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--danger-color);
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.spinner {
    border: 4px solid rgba(168, 85, 247, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============== RESPONSIVE DESIGN ============== */

@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 220px;
    }

    .dashboard-main-wrapper {
        margin-left: 220px;
    }

    .dashboard-main {
        padding: 25px;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: 100%;
        position: fixed;
        left: -100%;
        top: 0;
        border-right: none;
        border-bottom: none;
        transition: left 0.3s ease;
        padding-top: 0;
        overflow-y: auto;
        z-index: 1001;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
        z-index: 1000;
    }

    .sidebar-overlay.hide {
        display: none;
    }

    .sidebar-header {
        margin-bottom: 16px;
        padding: 20px;
        padding-bottom: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        padding-top: 0;
    }

    .menu-item {
        flex: none;
        border-left: 3px solid transparent;
        padding: 14px 16px;
        border-radius: 0;
    }

    .menu-item:hover {
        background: rgba(168, 85, 247, 0.1);
        border-radius: 6px;
    }

    .menu-item.active {
        background: rgba(168, 85, 247, 0.15);
        border-left-color: var(--primary-color);
        border-radius: 6px;
        color: var(--primary-color);
    }

    .dashboard-main-wrapper {
        margin-left: 0;
    }

    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
    }

    .sidebar-toggle {
        display: flex;
    }

    .header-left {
        flex: 1;
        gap: 12px;
        min-width: 0;
    }

    .header-left h1 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .header-subtitle {
        display: none;
    }

    .header-right {
        width: auto;
        flex-shrink: 0;
    }

    .user-info {
        width: auto;
        border-left: 1px solid var(--border-color);
        padding-left: 16px;
        border-top: none;
        padding-top: 0;
        gap: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .dashboard-main {
        padding: 16px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .traders-grid {
        grid-template-columns: 1fr;
    }

    .copies-table-container {
        overflow-x: auto;
    }

    .copies-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .login-box {
        border-radius: 12px;
        padding: 30px 20px;
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .dashboard-header {
        padding: 12px;
        gap: 8px;
    }

    .header-left {
        gap: 8px;
    }

    .header-left h1 {
        font-size: 16px;
        margin-bottom: 0;
    }

    .sidebar-toggle {
        min-width: 36px;
        min-height: 36px;
        gap: 4px;
    }

    .sidebar-toggle span {
        width: 20px;
        height: 2px;
    }

    .user-info {
        padding-left: 12px;
        gap: 8px;
    }

    .user-name {
        display: none;
    }

    .logout-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .stat-value {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-primary {
        width: 100%;
    }

    .dashboard-main {
        padding: 12px;
    }
}

/* ============== SCROLL BAR ============== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

